package com.hunttown.mes.rpc.domain;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

/**
 * created by wangjunfu on 2022-03-30 15:25:18
 */
public class MesEquipmentExamineDTO implements Serializable {
    private Integer id;
    private Integer entId;
    private Integer equipId;
    private Integer examineFrequency;
    private Integer examinePeople;
    private Date examineTime;
    private String proIds;
    private String examineResult;
    private String discoverProblem;
    private String remark;
    private Integer status;
    private Integer adminId;
    private Date createTime;
    private Integer stopFlag;
    private Integer deleteFlag;

    private String equipName;
    private String examineFrequencyName;
    private String examinePeopleCn;
    private String examineTimeSr;
    private String statusName;

    private List<MesEquipmentExamineProjectDTO> projectList; //维护项目列表

    //以下内容由Alt+Ins快捷生成

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getEntId() {
        return entId;
    }

    public void setEntId(Integer entId) {
        this.entId = entId;
    }

    public Integer getEquipId() {
        return equipId;
    }

    public void setEquipId(Integer equipId) {
        this.equipId = equipId;
    }

    public Integer getExamineFrequency() {
        return examineFrequency;
    }

    public void setExamineFrequency(Integer examineFrequency) {
        this.examineFrequency = examineFrequency;
    }

    public Integer getExaminePeople() {
        return examinePeople;
    }

    public void setExaminePeople(Integer examinePeople) {
        this.examinePeople = examinePeople;
    }

    public Date getExamineTime() {
        return examineTime;
    }

    public void setExamineTime(Date examineTime) {
        this.examineTime = examineTime;
    }

    public String getProIds() {
        return proIds;
    }

    public void setProIds(String proIds) {
        this.proIds = proIds;
    }

    public String getExamineResult() {
        return examineResult;
    }

    public void setExamineResult(String examineResult) {
        this.examineResult = examineResult;
    }

    public String getDiscoverProblem() {
        return discoverProblem;
    }

    public void setDiscoverProblem(String discoverProblem) {
        this.discoverProblem = discoverProblem;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getStopFlag() {
        return stopFlag;
    }

    public void setStopFlag(Integer stopFlag) {
        this.stopFlag = stopFlag;
    }

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public String getEquipName() {
        return equipName;
    }

    public void setEquipName(String equipName) {
        this.equipName = equipName;
    }

    public String getExamineFrequencyName() {
        return examineFrequencyName;
    }

    public void setExamineFrequencyName(String examineFrequencyName) {
        this.examineFrequencyName = examineFrequencyName;
    }

    public String getExaminePeopleCn() {
        return examinePeopleCn;
    }

    public void setExaminePeopleCn(String examinePeopleCn) {
        this.examinePeopleCn = examinePeopleCn;
    }

    public String getExamineTimeSr() {
        if (examineTimeSr == null || examineTimeSr.equals("")) {
            SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");

            if (examineTime == null) {
                return "1990-01-01";
            } else {
                return df.format(new Date(examineTime.getTime()));
            }
        } else {
            return examineTimeSr;
        }
    }

    public void setExamineTimeSr(String examineTimeSr) {
        this.examineTimeSr = examineTimeSr;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public List<MesEquipmentExamineProjectDTO> getProjectList() {
        return projectList;
    }

    public void setProjectList(List<MesEquipmentExamineProjectDTO> projectList) {
        this.projectList = projectList;
    }
}